package com.xcl.service.impl;

import com.xcl.mapper.ArticleMapper;
import com.xcl.pojo.Article;
import com.xcl.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> findArticle(Integer categoryId,String state) {
        return articleMapper.findArticle(categoryId,state);
    }

    @Override
    public Integer deleteArticle(Integer id) {
        return articleMapper.deleteArticle(id);
    }

    @Override
    public Integer addArticle(Article article) {
        return articleMapper.addArticle(article);
    }
}
